package com.test.p03factorymethod.example01;

/**
 * @author bcc
 */
public class Client {
    public static void main(String[] args) {
        Creator creator1 = new ConcreteCreator1();
        Product prod1 = creator1.factory();
        System.out.println(prod1);
        Creator  creator2 = new ConcreteCreator2();
        Product prod2 = creator2.factory();
        System.out.println(prod2);
        //JDWP Unable to get JNI 1.2 environment
        System.exit(0);
    }
}
